package com.gzz.demo.pattern.command;

/**
 * 卖出命令
 */
public class SellCommand implements ICommand {
    private Receiver receiver;
    private int quantity;
    public SellCommand(Receiver receiver ){
        this.receiver = receiver;
    }
    @Override
    public void Execute() {
        receiver.sell();
    }
}
